package org.blog.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(value = "评论表")
@TableName(value = "blog_comment")
public class BlogComment extends BaseColumn {
    @ApiModelProperty(value = "评论表主键")
    @TableId(value = "id")
    private String id;

    @ApiModelProperty(value = "父评论id")
    @TableField(value = "pid")
    private String pid;

    @ApiModelProperty(value = "外键，用户id")
    @TableField(value = "user_id")
    private String userId;

    @ApiModelProperty(value = "外键，文章id")
    @TableField(value = "essay_id")
    private String essayId;

    @ApiModelProperty(value = "评论内容")
    @TableField(value = "content")
    private String content;
}

